<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/page/inc/taglib.jsp"%>
<div class="pageHeader">
	<form id="pagerForm" onsubmit="return navTabSearch(this);" action="${pageContext.request.contextPath}/investment/investmentFollow/list?id=${requestScope.id}" method="post">
		<!-- 分页表单参数 -->
		<%@include file="/WEB-INF/page/inc/pageForm.jsp"%>
		<!-- 需要排序的字段 -->
		<input type="hidden" name="orderField" value="${requestScope.dwzPageBean.countResultMap.orderField}" />
		<!-- 正序倒序 -->
		<input type="hidden" name="orderDirection" value="${requestScope.dwzPageBean.countResultMap.orderDirection}" />
		<div class="searchBar">
			<table class="searchContent">
				<tr>
				
					<td>咨询时间： <fmt:formatDate value="${requestScope.investments.addTime}"  pattern='yyyy-MM-dd'/></td>
					<td>下一次跟进时间：<fmt:formatDate value="${requestScope.investments.ntfw}"  pattern='yyyy-MM-dd'/></td>
				</tr>
				<tr>
					<td>姓名：${requestScope.investments.name}</td>
					<td>电话：${requestScope.investments.phone}</td>
					<td>其他联系方式：${requestScope.investments.other}</td>
					<td>客户来源：${requestScope.investments.source}</td>
				</tr>
				<tr>
					<td>地区：${requestScope.investments.areaName}</td>
				</tr>
				<tr>
					<td>性别： ${requestScope.investments.sex == 0?'女':''} ${requestScope.investments.sex == 1?'男':''}</td>
					
					<td>状态： ${requestScope.investments.state == 1?'未联系':''} ${requestScope.investments.state == 2?'沟通跟进中':''} ${requestScope.investments.state == 3?'无效':''} ${requestScope.investments.state == 4?'已成交':''}</td>
					<td>客户意向：${requestScope.investments.intent}</td>
					<td>跟进人：${requestScope.investments.mename}</td>
					
					<%-- <td>招商类型： ${requestScope.investments.val}</td> --%>
				</tr>
				<tr>
					<td colspan="8">咨询内容：${requestScope.investments.remk1}</td>
				</tr>
				<tr>
					<td colspan="8">备注2：${requestScope.investments.remk2}</td>
				</tr>
				<tr>
					<td colspan="8">备注3：${requestScope.investments.remk3}</td>
				</tr>
				<tr>
					<td colspan="8">备注4：${requestScope.investments.remk4}</td>
				</tr>
				<tr>
					<td colspan="8">备注5：${requestScope.investments.remk5}</td>
				</tr>
				
				
			</table>
		</div>
	</form>
</div>
<div class="pageContent">
	<div class="panelBar">
		<ul class="toolBar">
			<shiro:hasPermission name="/investment/investmentFollow/export">
				<li><a href="${pageContext.request.contextPath}/investment/investmentFollow/export?id=${requestScope.id}" target="dwzExport" targetType="navTab" title="实要导出这些记录吗?" class="icon"><span>导出EXCEL</span></a></li>
			</shiro:hasPermission>
			<shiro:hasPermission name="/investment/investment/list">
				<li><a target="navTab" class="goBackBtn" title="客户信息" href="${pageContext.request.contextPath}/investment/investment/list?state=${requestScope.dwzPageBean.countResultMap.state}&today=${requestScope.dwzPageBean.countResultMap.today}" rel="${pageContext.request.contextPath}/investment/investment/list"><span>返回</span></a></li>
			</shiro:hasPermission>
			<shiro:hasPermission name="/investment/investmentFollow/toInsert">
				<li><a class="add" href="${pageContext.request.contextPath}/investment/investmentFollow/toInsert?id=${requestScope.investments.id}" rel="insert" target="dialog" width="820" height="460" mask="true"><span>添加</span></a></li>
			</shiro:hasPermission>
			<shiro:hasPermission name="/investment/investmentFollow/delete">
				<li><a class="delete" href="${pageContext.request.contextPath}/investment/investmentFollow/delete" rel="id" target="selectedTodo" title="确定要删除吗？" warn="请最小选择一条记录" mask="true"><span>批量删除</span></a></li>
			</shiro:hasPermission>
		</ul>
	</div>
	<table class="table" targetType="navTab" asc="asc" desc="desc" width="100%" layoutH="138">
		<thead>
			<tr>
				<th width="22"><input type="checkbox" group="id" class="checkboxCtrl"></th>
				<th orderField="fwtm" <c:if test="${requestScope.dwzPageBean.countResultMap.orderField == 'fwtm'}">class="${requestScope.dwzPageBean.countResultMap.orderDirection}"</c:if>>跟进时间</th>
				<th orderField="fwop" <c:if test="${requestScope.dwzPageBean.countResultMap.orderField == 'fwop'}">class="${requestScope.dwzPageBean.countResultMap.orderDirection}"</c:if>>跟进操作</th>
				<th width="200" orderField="remk" <c:if test="${requestScope.dwzPageBean.countResultMap.orderField == 'remk'}">class="${requestScope.dwzPageBean.countResultMap.orderDirection}"</c:if>>备注</th>
				<th orderField="add_time" <c:if test="${requestScope.dwzPageBean.countResultMap.orderField == 'add_time'}">class="${requestScope.dwzPageBean.countResultMap.orderDirection}"</c:if>>添加时间</th>
				<th width="260">操作</th>
			</tr>
		</thead>
		<tbody>
			<c:if test="${requestScope.dwzPageBean != null &&  requestScope.dwzPageBean.recordList != null }">
				<c:forEach var="record" items="${requestScope.dwzPageBean.recordList}" varStatus="status">
					<tr  ondblclick="openDetails(this)" target="dialog" href="${pageContext.request.contextPath}/investment/investmentFollow/toUpdate?id=${record.id}" title="编辑">
						<td><input name="id" value="${record.id}" type="checkbox"></td>
						<td>${record.fwtm}</td>
						<td>${record.fwop}</td>
						<td>${record.remk}</td>
						<td><fmt:formatDate value="${record.addTime}"  pattern='yyyy-MM-dd'/></td>
						<td>
							<shiro:hasPermission name="/investment/investmentFollow/toDetails">
								<a title="详情" target="dialog" width="820" height="460" href="${pageContext.request.contextPath}/investment/investmentFollow/toDetails?id=${record.id}" class="detailsBtn" mask="true"><span>详情</span></a>
							</shiro:hasPermission>
							<shiro:hasPermission name="/investment/investmentFollow/toUpdate">
								<a title="编辑" target="dialog" width="820" height="460" href="${pageContext.request.contextPath}/investment/investmentFollow/toUpdate?id=${record.id}" class="editBtn" mask="true"><span>编辑</span></a>
							</shiro:hasPermission> <shiro:hasPermission name="/investment/investmentFollow/delete">
								<a title="确定要删除吗？" target="ajaxTodo" href="${pageContext.request.contextPath}/investment/investmentFollow/delete?id=${record.id}" class="deleteBtn" mask="true"><span>删除</span></a>
							</shiro:hasPermission></td>
					</tr>
				</c:forEach>
			</c:if>
		</tbody>
	</table>
	<!-- 分页条 -->
	<%@include file="/WEB-INF/page/inc/pageBar.jsp"%>
</div>